package com.songlanyun.modules.account.dao;

import com.songlanyun.modules.account.entity.UserShopRoleEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * 会员在每个店铺中的等级（会员的上级会员如查成为商家，自己的绑定店铺成为这个商家的店铺，同时之前所在商家的等级要克隆下来）
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-05 17:23:13
 */
@Mapper
public interface UserShopRoleDao extends BaseMapper<UserShopRoleEntity> {

    BigDecimal getSumByUserId(Long userId);

    BigDecimal getSumByUserIdAndShopId(@Param("userId") Long userId, @Param("shopId") Long shopId);
}
